<!--{include file="<!--{$tplpath}-->head.html"}-->


<div id="bigmain">

<div class="main03">



    <div class="menu03mainleft" style="width:720px;">

	
		<h3 class="title"><span>在线提问</span></h3>
         <p>
 <!--{if $username== ""}-->
		 <p>您还没有登陆，要匿名提问吗？请在右侧登陆。</p>
		<form method="post" action="/guestbook.php" name="myform" id="myform"  onsubmit="return checkform();"/>
        <input type="hidden" name="action" value="saveadd_noname" />
		<table cellpadding='8' cellspacing='8' border="0" style="line-height:25px;" width="100%" align="center">
			  <tr>
				<td colspan='2' class='topTd'></td>
			  </tr>
			  <tr>
				<td class='hback_1' width='20%' style="padding-left:20px;">用户名：</td><td>匿名用户</td>
				
			  </tr>
			 
				<input name="title" id="title" type="hidden" value="[<!--{$info.title}-->]" />
			  <tr>
				<td style="padding-left:20px;">内容：</td>
				<td></td>
			  </tr>
			  <tr>
				<td colspan=2 style="padding-left:20px;padding-right:40px;"><textarea name="content" id="content" style="width:100%;height:100px;overflow:auto;"></textarea> </td>
			  </tr>
				<input name="bookuser"  type="hidden" size="25" value="匿名用户" />
				<input name="telephone" id="telephone" type="hidden" size="25" value="<!--{$loginuser.phone}-->" />
				<input name="mobile" id="mobile" type="hidden" size="25"  value="<!--{$loginuser.phone}-->" /> 
				<input name="email" id="email" type="hidden" size="35"  value="<!--{$loginuser.email}-->"/> 
			  
              <input type="hidden" name="targeturl" value="<!--{$info.url}-->" />
			  <input type="hidden" name="cateid" value="5" />
			  <input type="hidden" name="pageid" value="<!--{$id}-->" />
			  <tr>
				<td colspan='2' align="center" height="30px;">
				<input type="image" src="<!--{$tplpath}-->images/gbtn_public.png" name="btn_save" value="submit" />&nbsp;&nbsp;
				<a href="javascript:document.myform.reset();;"><img src="<!--{$tplpath}-->images/gbtn_clear.png" /></a></td>
			  </tr>
			</table>
<!--{else}-->
			<form method="post" action="/guestbook.php" name="myform" id="myform"  onsubmit="return checkform();"/>
			<input type="hidden" name="action" value="saveadd" />
			<table cellpadding='8' cellspacing='8' border="0" style="line-height:25px;" width="100%" align="center">
			  <tr>
				<td colspan='2' class='topTd'></td>
			  </tr>
			  <tr>
				<td class='hback_1' width='20%' style="padding-left:20px;">用户名：</td><td><!--{$loginuser.username}--></td>
				
			  </tr>
			 
				<input name="title" id="title" type="hidden" value="[<!--{$info.title}-->]" />
			  <tr>
				<td style="padding-left:20px;">内容：</td>
				<td></td>
			  </tr>
			  <tr>
				<td colspan=2 style="padding-left:20px;padding-right:40px;"><textarea name="content" id="content" style="width:75%;height:100px;overflow:auto;"></textarea> <font color="red">*</font></td>
			  </tr>
				<input name="bookuser"  type="hidden" size="25" value="<!--{$loginuser.username}-->" />
				<input name="telephone" id="telephone" type="hidden" size="25" value="<!--{$loginuser.phone}-->" />
				<input name="mobile" id="mobile" type="hidden" size="25"  value="<!--{$loginuser.phone}-->" /> 
				<input name="email" id="email" type="hidden" size="35"  value="<!--{$loginuser.email}-->"/> 
			  
              <input type="hidden" name="targeturl" value="<!--{$info.url}-->" />
			  <input type="hidden" name="cateid" value="5" />
			  <input type="hidden" name="pageid" value="<!--{$id}-->" />
			  <tr>
				<td colspan='2' align="center" height="30px;"><input type="image" src="<!--{$tplpath}-->images/gbtn_public.png" name="btn_save" value="submit" />&nbsp;&nbsp;
				<a href="javascript:document.myform.reset();;"><img src="<!--{$tplpath}-->images/gbtn_clear.png" /></a></td>
			  </tr>
			</table>
<!--{/if}-->
			</form></p>

</div>





 <!--{include file="<!--{$tplpath}-->right.html"}-->



	<div class="css_hack"></div>

</div>
<script type='text/javascript' src='<!--{$skinpath}-->js/command.js'></script>
<script src="<!--{$skinpath}-->js/jquery-1.4.4.min.js" language="javascript" type="text/javascript"></script>
<script src="<!--{$skinpath}-->js/screen.js" language="javascript" type="text/javascript"></script>
<script src="<!--{$skinpath}-->js/jquery.cross-slide.js" language="javascript" type="text/javascript"></script>
<script language="javascript">
function checkform(){


	if($("#content").val()==""){
		alert("留言内容不能为空.");
		return false;
	}
}
</script>
<!--{include file="<!--{$tplpath}-->footer.html"}-->
